package com.hanamaki.basic.struct;

import java.util.Scanner;

public class Scanner1 {

    public static void main(String[] args) {

//        实例化一个  键盘扫描对象 Scanner
        Scanner scanner = new Scanner(System.in);//  alt + enter +enter

//       接受字符串
//
//        System.out.println("请输入带空格的字符串");
//        System.out.println(scanner.next());

        System.out.println("请输入带空格的字符串");
        System.out.println(scanner.nextLine());


//         关闭  IO流
        scanner.close();

    }

}
